-- GENERATED SPELL FOR [Hideous Plaguebringer] --


function spell0_30987(pUnit, Event) --@Arcing Smash,n/a--
pUnit:FullCastSpellOnTarget(38761,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30987', 541, 1)
end

function Sorts_30987(pUnit, Event)
local choix_sorts_30987 = math.random(0, 0)
if choix_sorts_30987 == 0 then
pUnit:RegisterEvent('spell0_30987', 1, 1)
end
end

function mob30987_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30987', math.random(1500, 3000), 1)
end

function mob30987_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30987_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30987_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30987, 1, 'mob30987_Action')
RegisterUnitEvent(30987, 2, 'mob30987_Leave')
RegisterUnitEvent(30987, 3, 'mob30987_Kill')
RegisterUnitEvent(30987, 4, 'mob30987_Die')
